package com.todo.content.iface.backend.response;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author zhangwenxiang
 * @date 2024/3/14 20:50
 * @description
 */
@Data
@Schema(title = "内容详情信息", description = "内容详情信息")
public class ContentDetailResp {
    /**
     * 主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(title = "主键id", description = "主键id")
    private Long id;
    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(title = "用户id", description = "用户id")
    private Long userId;
    /**
     * 内容标题
     */
    @Schema(title = "内容标题", description = "内容标题")
    private String title;
    /**
     * 内容信息
     */
    @Schema(title = "内容信息", description = "内容信息")
    private String content;
    /**
     * 主图
     */
    @Schema(title = "主图", description = "主图")
    private String mainImg;
    /**
     * 分类code
     */
    @Schema(title = "分类code", description = "分类code")
    private String classifyCode;
    /**
     * 当前状态
     * ContentStatusEnum
     */
    @Schema(title = "当前状态", description = "当前状态")
    private Integer status;
    /**
     * 扩展信息-图片列表
     */
    @Schema(title = "图片列表", description = "扩展信息-图片列表")
    private List<String> imgList;
    /**
     * 是否允许评论
     */
    @Schema(title = "是否允许评论", description = "是否允许评论")
    private Integer allowComment;
    /**
     * 浏览数
     */
    @Schema(title = "浏览数", description = "浏览数")
    private Integer seeCount;
    /**
     * 点赞数
     */
    @Schema(title = "点赞数", description = "点赞数")
    private Integer likeCount;
    /**
     * 评论数
     */
    @Schema(title = "评论数", description = "评论数")
    private Integer commentCount;
    /**
     * 来源
     * SourceEnum
     */
    @Schema(title = "来源", description = "来源")
    private Integer source;
}
